{% extends "base.html" %}{% load i18n crm_tags %} {% block title %}{% translate "Contacts" %}{% endblock %} {% block content %}

{% translate "Contacts" %}

{% blocktranslate trimmed count n=total %}{{ n }} person{% plural %}{{ n }} people{% endblocktranslate %}{% if page.paginator.count != total %}, {% blocktranslate trimmed with shown=page.paginator.count %}{{ shown }} shown{% endblocktranslate %}{% endif %}

{% if user.is_supervisor %}{% translate "Download all (CSV)" %}{% endif %} {% translate "Add contact" %}
{% if mine %}{% endif %}
{% translate "Everyone’s" %} {% translate "In my care" %}
{% if page.object_list %}
{% for c in page %} {% endfor %}
{% translate "Name" %}{% translate "Phone" %}{% translate "Status" %}{% translate "Location" %}{% translate "Care agent" %}{% translate "Last call" %}
{{ c.name }}{% if c.do_not_call %} {% translate "Do not call" %}{% endif %} {{ c.phone_display }} {{ c.get_status_display }} {{ c.location|default:"—" }} {{ c.care_agent.display_name|default:"—" }} {% if c.last_call %}{{ c.last_call|when }}{% else %}{% translate "Never" %}{% endif %}
{% include "_pager.html" %} {% else %}
{% translate "No contacts match." %}{% translate "Try part of the name, or the last digits of the number." %}
{% endif %} {% endblock %}